package com.corpgovernment.supplier.vo.suppliercompany;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 企业订购 新增更新request
 *
 * @author jhxue
 */
@Data
@ApiModel("企业订购 新增更新request")
public class AddOrUpdateRequestVo {

    @NotNull(message = "供应商信息不能为空")
    @Valid
    @ApiModelProperty("供应商配置")
    private SupplierCompanyVo supplierCompany;
    @NotNull(message = "合同不能为空")
    @Valid
    @ApiModelProperty("合同信息")
    private SupplierCompanyContractVo supplierCompanyContract;
}
